package com.jinhua.huaojbackendjudgeservice.controller.inner;

import com.jinhua.huaojbackendmodel.model.entity.QuestionSubmit;
import com.jinhua.huaojbackendserviceclient.service.JudgeFeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/inner")
public class JudgeInnerController implements JudgeFeignClient {
    @Resource
    private JudgeFeignClient judgeFeignClient;

    @Override
    @PostMapping("/do")
    public QuestionSubmit submit(long questionSubmitId){
        return judgeFeignClient.submit(questionSubmitId);
    }
}
